<?php
namespace ImiApp\Module\Member\Service\Base;

use Imi\Model\Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * 每10节课价格 基类
 * @Entity
 * @Table(name="sc_jigou_team_price", id={"id"})
 * @DDL("CREATE TABLE `sc_jigou_team_price` (
  `id` int(10) unsigned NOT NULL,
  `admin_id` int(10) DEFAULT NULL,
  `team_id` int(10) DEFAULT NULL COMMENT '班级id',
  `price` decimal(10,2) DEFAULT NULL COMMENT '价格',
  `min` int(10) DEFAULT NULL COMMENT '第几节(起)',
  `max` int(10) DEFAULT NULL COMMENT '第几节(终)',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='每10节课价格'")
 * @property int $id 
 * @property int $adminId 
 * @property int $teamId 班级id
 * @property float $price 价格
 * @property int $min 第几节(起)
 * @property int $max 第几节(终)
 */
abstract class ScJigouTeamPriceBase extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=false)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * admin_id
     * @Column(name="admin_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $adminId;

    /**
     * 获取 adminId
     *
     * @return int
     */ 
    public function getAdminId()
    {
        return $this->adminId;
    }

    /**
     * 赋值 adminId
     * @param int $adminId admin_id
     * @return static
     */ 
    public function setAdminId($adminId)
    {
        $this->adminId = $adminId;
        return $this;
    }

    /**
     * 班级id
     * team_id
     * @Column(name="team_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $teamId;

    /**
     * 获取 teamId - 班级id
     *
     * @return int
     */ 
    public function getTeamId()
    {
        return $this->teamId;
    }

    /**
     * 赋值 teamId - 班级id
     * @param int $teamId team_id
     * @return static
     */ 
    public function setTeamId($teamId)
    {
        $this->teamId = $teamId;
        return $this;
    }

    /**
     * 价格
     * price
     * @Column(name="price", type="decimal", length=10, accuracy=2, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var float
     */
    protected $price;

    /**
     * 获取 price - 价格
     *
     * @return float
     */ 
    public function getPrice()
    {
        return $this->price;
    }

    /**
     * 赋值 price - 价格
     * @param float $price price
     * @return static
     */ 
    public function setPrice($price)
    {
        $this->price = $price;
        return $this;
    }

    /**
     * 第几节(起)
     * min
     * @Column(name="min", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $min;

    /**
     * 获取 min - 第几节(起)
     *
     * @return int
     */ 
    public function getMin()
    {
        return $this->min;
    }

    /**
     * 赋值 min - 第几节(起)
     * @param int $min min
     * @return static
     */ 
    public function setMin($min)
    {
        $this->min = $min;
        return $this;
    }

    /**
     * 第几节(终)
     * max
     * @Column(name="max", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $max;

    /**
     * 获取 max - 第几节(终)
     *
     * @return int
     */ 
    public function getMax()
    {
        return $this->max;
    }

    /**
     * 赋值 max - 第几节(终)
     * @param int $max max
     * @return static
     */ 
    public function setMax($max)
    {
        $this->max = $max;
        return $this;
    }

}
